package me.zhengjie.modules.weixin.message.custom;

public class CustomTextMessage extends AbstractCustomMessage {

    public CustomTextMessage() {
        setMsgtype("text");
    }

    public CustomTextMessage(String content) {
        this();
        this.text = new TextMessage(content);
    }

    public CustomTextMessage(TextMessage text) {
        this();
        this.text = text;
    }

    private TextMessage text;

    public TextMessage getText() {
        return text;
    }

    public void setText(TextMessage text) {
        this.text = text;
    }

    public static class TextMessage {

        TextMessage(String content) {
            this.content = content;
        }

        private String content;

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }
    }

}
